// import type { RouteRecordRaw } from 'vue-router'

// export default <Array<RouteRecordRaw>>[

//   {
//     path: '/business/docDetailNew',
//     name: 'docDetailNew',
//     component: () => import('@/views/internal/business/docDetailCopy.vue'),
//     meta: {
//       title: '业务详情'
//     }
//   },
//   {
//     path: '/business/docDetailBillOfLoading',
//     name: 'docDetailBillOfLoading',
//     component: () =>
//       import('@/views/internal/business/docDetailBillOfLading.vue'),
//     meta: {
//       title: '业务详情'
//     }
//   },

// ]

import type { RouteRecordRaw } from 'vue-router'

export default <Array<RouteRecordRaw>>[
  {
    path: '/business/docWork',
    name: 'businessDocWork',
    component: () => import('@/views/internal/business/docWork.vue'),
    meta: {
      title: '业务信息'
    }
  },
  {
    path: '/business/docDetail',
    name: 'businessDocDetail',
    component: () => import('@/views/internal/business/docDetail.vue'),
    meta: {
      title: '业务详情'
    }
  },
  {
    path: '/business/bussinessIndex',
    name: 'bussinessIndex',
    component: () => import('@/views/internal/business/bussinessIndex.vue'),
    redirect: '/business/bussinessIndex/docWorkNew',
    meta: {
      title: '海运出口'
    },
    children: [
      {
        path: 'docWorkNew',
        name: 'docWorkNew',
        component: () => import('@/views/internal/business/docWorkNew.vue'),
        meta: {
          title: '订舱作业'
        }
      },
      {
        path: 'docWorkNewdetail',
        name: 'docWorkNewdetail',
        component: () => import('@/views/internal/business/docDetailCopy.vue'),
        meta: {
          title: '订舱详情'
        }
      }
    ]
  }
]
